package com.lanou.service;

import com.lanou.entity.Commodity;
import com.lanou.entity.Item;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CartPageService {
    List<Item> showCartNotLand(HttpServletRequest request);

    void addCartNotLand(Long itemId, Integer num);

    void addCart(Long itemId, Integer num, Long userId);

    List<Commodity> listCartItems(Long userId);

    String updateCart(String cart, Long itemId, Integer num);
}
